#pragma once
#include "cocos2d.h"
class SpriteStarScore:public cocos2d::CCSprite
{
private:
	enum SCORE_TAG{TAG_SCORE_STAR=1,TAG_SCORE_BLACKCLOUD,TAG_SCORE_PLANE};
	enum ITEM_TAG{TAG_PIC=1,TAG_LABLE};
public:
	SpriteStarScore(void);
	~SpriteStarScore(void);
	static SpriteStarScore *node();
public:
	bool init();
	void addStar(int nAddStar);
	void addBlackcloud(int nBlackcloud);
	void addPlane(int nPlane);
private:
	bool initItem(const char *szName,SCORE_TAG tag);


private:
	void update(SCORE_TAG scoreTag,int nNum);
private:
	
	int nStarNum_;
	int nBlackCloud_;
	int nPlane_;

};
